// 集装箱流转记录
import request from "@/utils/https/requests";
// 列表
export function containerCirculationList(data: any) {
  return request({
    url: "/containerCirculation/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddContainerCirculation(data: any) {
  return request({
    url: "/containerCirculation/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModContainerCirculation(data: any) {
  return request({
    url: `/containerCirculation/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function containerCirculationDetail(id: string) {
  return request({
    url: `/containerCirculation/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteContainerCirculation(id: string) {
  return request({
    url: `/containerCirculation/postDelete/${id}`,
    method: "post",
  });
}

// 预约还柜
export function makeReturnAction(data: any) {
  return request({
    url: '/containerCirculation/makeReturnAction',
    method: "post",
    data,
  });
}

// 分配司机
export function allocationDriverAction(data: any) {
  return request({
    url: '/containerCirculation/allocationDriverAction',
    method: "post",
    data,
  });
}

// 司机还柜完成
export function driverReturnAction(data: any) {
  return request({
    url: '/containerCirculation/driverReturnAction',
    method: "post",
    data,
  });
}



// 审批流程
export function containerCirculationAuditAction(data: any) {
  return request({
    url: '/containerCirculation/auditAction',
    method: "post",
    data,
  });
}

